package Observer_Pattern.school;

import java.util.ArrayList;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public abstract class AbstractTraget {
    protected String system_name;
    protected String work_name;

    protected ArrayList<Observe> number=new ArrayList<Observe>();

    public abstract void change(String systenname);


    public void setWork_name(String work_name) {
        this.work_name = work_name;
    }

    public void setSystem_name(String system_name) {
        this.system_name = system_name;
    }

    public String getSystem_name() {
        return system_name;
    }

    public String getWork_name() {
        return work_name;
    }
    public void join(Observe observe){
        number.add(observe);
    }
    public void remove(Observe observe){
        number.remove(observe);
    }
}
